<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<form class="well form-inline margin-top-20" method="post" action="{:url('Single/slist')}">
         数量排行：
        <select class="form-control" name="norder" style="width:140px;">
        	<option >请选择</option>
            <option value='1'>低到高</option>            
            <option value='2'>高到低</option>
        </select> &nbsp;&nbsp;
        金额排行：
        <select class="form-control" name="morder" style="width: 140px;">
        	<option >请选择</option>
            <option value='1'>低到高</option>            
            <option value='2'>高到低</option>
        </select> &nbsp;&nbsp; 
        <input type="text"  name="storeid"  value="{$storeid}" style="display:none;">
           时间:
        <input type="text" class="form-control js-bootstrap-date" name="start_time" id="start_time" value="{:input('request.start_time')}" style="width: 140px;" autocomplete="off">-
		<input type="text" class="form-control js-bootstrap-date" name="end_time" id="end_time" value="{:input('request.end_time')}" style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
        <input type="submit" class="btn btn-primary" value="搜索" />     
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="40">ID</th>
					<th align="left">店铺</th>
					<th align="left">商品</th>
					<th align="left">数量</th>
					<th align="left">总额</th>
					<th align="left">类型</th>					
					<th align="left">生成时间</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo" key='k'>
				<tr>
				<td ><php>
					if(isset($_GET['page'])){
						echo $k+1+10*($_GET['page']-1);
					}else{
						echo $k+1;
					}
					</php></td>
					<td>{$vo.store_name}</td>
					<td>{$vo.g_goodsname}</td><!-- 店铺 -->
					<td>{$vo.num}</td>
					<td>{$vo.money}</td>
					<td><?php $type = $vo['stemeal'];switch($type){case 0: echo "单品";break;case 1: echo "套餐";break;} ?></td>
					<td>{$vo.ctime|time_format}</td>					
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>	
	<script>
function exportdata()
{
	var orderNo=$("#orderNo").val();
	var cardid=$("#cardid").val();
	var starttime=$("#start_time").val();
	var endtime=$("#end_time").val();
	location="./importData?orderNo="+orderNo+"&cardid="+cardid+"&starttime="+starttime+"&endtime="+endtime;
}
</script>  
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>